//加密密码函数，将在中间件的定义中被使用
const crypto = require("crypto"); //node自带的库

const md5password = (password) => {
  const md5 = crypto.createHash("md5");
  const result = md5.update(password).digest("hex");
  return result;
};

module.exports = md5password;
